import http from '@/api/http'

// 报价单分页
export const quotationPage = (data) => http.post('/sale/quotation/page', data)

// 新建报价单（后端会自动生成默认明细）
export const quotationCreate = (data) => http.post('/sale/quotation', data)

// 报价单详情
export const quotationDetail = (id) => http.get(`/sale/quotation/${id}`)

// 查询报价单的明细列表（按报价单ID）
export const quotationDetailsByQuotation = (quotationId) => http.get(`/sale/quotation-detail/quotation/${quotationId}`)

// 报价明细分页
export const quotationDetailPage = (data) => http.post('/sale/quotation-detail/page', data)

// 新建报价明细
export const quotationDetailCreate = (data) => http.post('/sale/quotation-detail', data)

// 报价明细详情
export const quotationDetailInfo = (id) => http.get(`/sale/quotation-detail/${id}`)


